export const CustomerThead = [
  {
    type: 'selection',
    minWidth: 60,
    fixed: 'left',
    align: 'center'
  },
  {
    title: '客户名称',
    minWidth: 180,
    tooltip: true,
    key: 'name',
    fixed: 'left',
    render: (h, params) => {
      let row = params.row
      let name = row.name
      if (row.status === '终止合作') {
        return h('div', {
          style: {
            color: 'red'
          }
        }, name)
      } else {
        return h('div', name)
      }
    }
  },
  {
    title: '合作类型',
    minWidth: 100,
    key: 'type'
  },
  {
    title: '纳税人性质',
    minWidth: 120,
    key: 'taxpayerTypeName'
  },
  {
    title: '参保地区',
    minWidth: 150,
    key: 'insuranceCitys'
  },
  {
    title: '上级公司',
    minWidth: 150,
    key: 'superCompanyName'
  },
  {
    title: '人事负责人姓名',
    minWidth: 150,
    key: 'hrContactName'
  },
  {
    title: '人事负责人电话',
    minWidth: 150,
    key: 'hrContactPhone'
  },
  {
    title: '合作关系',
    minWidth: 150,
    key: 'status'
  },
  {
    title: '所属客服',
    minWidth: 150,
    key: 'serverName'
  },
  {
    title: '客户编码',
    tooltip: true,
    minWidth: 150,
    key: 'code',
    render: (h, params) => {
      let row = params.row
      let code = row.code
      if (row.status === '终止合作') {
        return h('div', {
          style: {
            color: 'red'
          }
        }, code)
      } else {
        return h('div', code)
      }
    }
  },
  {
    title: '客户分类',
    minWidth: 120,
    key: 'categoryName'
  },
  {
    title: '公司性质',
    minWidth: 120,
    key: 'characterName'
  },
  {
    title: '所属行业',
    minWidth: 120,
    key: 'businessType'
  },
  {
    title: '公司规模',
    minWidth: 120,
    key: 'size'
  },
  {
    title: '公司类型',
    minWidth: 120,
    key: 'companyTypeName'
  },
  {
    title: '操作',
    fixed: 'right',
    minWidth: 400,
    key: 'operation',
    slot: 'operation',
    align: 'center'
  }
]

// creat合同信息表头
export const contractThead = [
  {
    title: '合同编号',
    slot: 'code'
  },
  {
    title: '合同年限',
    slot: 'duration'
  },
  {
    title: '合同开始时间',
    slot: 'startDate'
  },
  {
    title: '合同结束时间',
    slot: 'endDate'
  },
  {
    title: '附件上传',
    key: 'add',
    slot: 'add'
  },
  {
    title: '备注',
    slot: 'remark'
  },
  {
    title: '操作',
    slot: 'operation'
  }
]
// creat参保信息表头
export const insuredThead = [
  {
    title: '参保地区',
    key: 'cityId'
  },
  {
    title: '类型',
    key: 'securityType'
  },
  {
    title: '编号',
    key: 'insuranceCode'
  },
  {
    title: '操作',
    key: 'operation'
  }
]

export const processManageThead = [
  {
    title: '营业执照副本',
    slot: 'license'
  },
  {
    title: '客户服务流程',
    slot: 'serviceProcess'
  },
  {
    title: '员工手册模板',
    slot: 'employeeTemplate'
  },
  {
    title: '劳动合同模板',
    slot: 'contractTemplate'
  },
  {
    title: '规章制度',
    slot: 'rulesSystem'
  },
  {
    title: '员工离职满意度调查模板',
    slot: 'surveyTemplate'
  },
  {
    title: '客户协议模板',
    slot: 'protocolTemplate'
  }
]
